package com.fengxun.software_cup.pojo;
// 团   队: 风讯网络
// 后   端: Dopa
// 开发时间: 2021/6/14 20:59

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class Sent_mean {
    private String[] x_index;
    private String[] y_index;
    private String[] sent_mean;
    private String[] rate;
    private String[] sent_max;
    private String[] year;
    private String state;

    public void setYear(String year) {
        this.year = processStr(year);
    }

    public void setX_index(String x_index) {
       this.x_index=processStr(x_index);
    }

    public void setY_index(String y_index) {
        this.y_index=processStr(y_index);
    }

    public void setSent_mean(String sent_mean) {
        this.sent_mean = processStr(sent_mean);
    }

    public void setRate(String rate) {
        this.rate = processStr(rate);
    }

    public void setSent_max(String sent_max) {
        this.sent_max = processStr(sent_max);
    }

    private String[] processStr(String str){
        return str.replaceAll( "]|\\[","").split(",");
    }
}
